package com.qingmi.farmer.data.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 粮食类型
 */
public class GrainType {

    @SerializedName("ParameterId")
    private String id;

    @SerializedName("Name")
    private String name;

    @SerializedName("ChildParameter")
    private List<GrainType> childParameter;

    public GrainType() {
    }

    public GrainType(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<GrainType> getChildParameter() {
        return childParameter;
    }

    public void setChildParameter(List<GrainType> childParameter) {
        this.childParameter = childParameter;
    }

    @Override
    public String toString() {
        return name;
    }
}
